﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MainSearch.aspx.cs" Inherits="Presention.MainSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Role Search</p>
    <asp:Panel ID="Panel1" runat="server" GroupingText = "Search Criteria">
        Role Name&nbsp;
        <asp:TextBox ID="RoleNameTextBox" runat="server"></asp:TextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        Status&nbsp;
        <asp:DropDownList ID="StatusDropDownList" runat="server" Height="20px" Width="129px">
        </asp:DropDownList>
        <%--&nbsp;&nbsp;&nbsp;&nbsp; User&nbsp;&nbsp;
        <asp:TextBox ID="UserTextBox" runat="server"></asp:TextBox>--%>
        <br />
        <br />
        Authority:&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <asp:CheckBoxList ID="AuthorityCheckBoxList" 
                runat="server" ClientIDMode="AutoID" 
                Height="52px" RepeatDirection="Horizontal" Width="315px" RepeatColumns="4" AutoPostBack="false" 
                >
              
            </asp:CheckBoxList>
        <br />
        
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="GenerateReportButton" runat="server" Text="Generate Report" 
            onclick="GenerateReportButton_Click" />
        
        <asp:Panel ID="Panel2" runat="server" GroupingText = "Report">

        <asp:GridView ID="RoleSearchGridView" runat="server" AutoGenerateColumns="False" 
            CellPadding="2" ForeColor="#333333" GridLines="None" Width="479px" AllowSorting="True"
            Height="117px"  AllowPaging="True" 
             onpageindexchanging="RoleSearchGridView_PageIndexChanging" onsorting="RoleSearchGridView_Sorting" 
            >
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:HyperLinkField HeaderText="Role Id" DataTextField="RoleId" SortExpression="RoleId"  />
                <asp:HyperLinkField HeaderText="Role Name" DataTextField="RoleName" SortExpression="RoleName" />
                <asp:HyperLinkField DataTextField="AuthorityName" HeaderText="Authority Name" SortExpression="AuthorityName" />
                <asp:HyperLinkField DataTextField="LevelName" HeaderText="Level Name<font face=webdings>5</font>" SortExpression="LevelName" />
           
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
          &nbsp;&nbsp;&nbsp;&nbsp;
        <table style="width: 230px; height: 28px">
                    <tr>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="PageIndex_Changed" visible="false">First</asp:LinkButton></td>
                        <td style="width: 95px; height: 28px">
                            <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="PageIndex_Changed" visible="false">Previous</asp:LinkButton></td>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnNext" runat="server" OnClick="PageIndex_Changed" visible="false" >Next</asp:LinkButton></td>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnLast" runat="server" OnClick="PageIndex_Changed" visible="false">Last</asp:LinkButton></td>
                        <td style="width: 200px; height: 28px">
                            
                            &nbsp;<asp:Label ID="lblCurrentInfo" runat="server" Text="Label" visible="false"></asp:Label>
                            <asp:Label ID="Label1" runat="server" Text="/" visible="false"></asp:Label>
                             <asp:Label ID="lblCount" runat="server" Text="Label" visible="false"></asp:Label></td>
                    </tr>
                </table>
        <%--<asp:CompareValidator ID="CompareValidator1" runat="server" 
            ErrorMessage="Please Select an item!" ControlToValidate="StatusDropDownList" 
            Font-Bold="False" ForeColor="Red" Operator="Equal" 
            ValueToCompare="Please Select"></asp:CompareValidator>--%>
            
        </asp:Panel>
    </asp:Panel>
</asp:Content>
